package com.wxapp.custom.api.feign;

import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.custom.api.feign.fallback.CouponUserFallBack;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author lgl
 * @Description
 * @Datetime 2023/2/13 13:41
 * @Modified By
 */
@FeignClient(value = "wxapp-sale", fallback = CouponUserFallBack.class)
public interface CouponUserFeign {
    @GetMapping("coupon/user/getCouponCount")
    @Operation(summary ="获取优惠券数量")
    ResultVm<Integer> getCouponCount(@RequestParam("userId") String userId);
}
